<template>
    <div>
        <buddle-data :obj="obj"/>
    </div>
</template>

<script>
import BuddleData from '@/views/echarts/map/buddle/data'
export default {
    components: {BuddleData},
    data() {
        return {
            obj: {"view":{"id":"1513e5f7-2fd4-41b7-9059-93065d9aadb7","name":"本地测试","sceneId":"03279259-6ac5-443c-9114-0dee98247176","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","type":"buddle-map","render":"echarts","resultCount":1000,"resultMode":"custom","title":"本地测试","createBy":"admin","createTime":1638171183528,"updateTime":1640749311042,"stylePriority":"view","extStack":[],"extBubble":[],"customAttr":{"color":{"value":"default","colors":["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],"alpha":100,"tableHeaderBgColor":"#4e81bb","tableItemBgColor":"#c6d9f0","tableFontColor":"#000000","tableStripe":true,"dimensionColor":"#000000","quotaColor":"#000000"},"tableColor":{"value":"default","colors":["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],"alpha":100,"tableHeaderBgColor":"#4e81bb","tableItemBgColor":"#c6d9f0","tableFontColor":"#000000","tableStripe":true,"dimensionColor":"#000000","quotaColor":"#000000"},"size":{"barDefault":true,"barWidth":40,"barGap":0.4,"lineWidth":1,"lineType":"solid","lineSymbol":"circle","lineSymbolSize":4,"lineSmooth":false,"lineArea":false,"pieInnerRadius":0,"pieOuterRadius":80,"pieRoseType":"radius","pieRoseRadius":5,"funnelWidth":80,"radarShape":"polygon","radarSize":80,"tableTitleFontSize":12,"tableItemFontSize":12,"tableTitleHeight":36,"tableItemHeight":36,"tablePageSize":"10","gaugeMin":0,"gaugeMax":100,"gaugeStartAngle":225,"gaugeEndAngle":-45,"dimensionFontSize":18,"quotaFontSize":18,"spaceSplit":10,"dimensionShow":true,"quotaShow":true,"scatterSymbol":"circle","scatterSymbolSize":20,"treemapWidth":80,"treemapHeight":80,"liquidMax":100,"liquidSize":80,"liquidOutlineBorder":4,"liquidOutlineDistance":8,"liquidWaveLength":128,"liquidWaveCount":3,"liquidShape":"circle"},"label":{"show":false,"position":"inside","color":"#909399","fontSize":"10","formatter":"{c}","gaugeFormatter":"{value}","labelLine":{"show":true}},"tooltip":{"show":true,"trigger":"item","confine":true,"textStyle":{"fontSize":"10","color":"#909399"},"formatter":""}},"customStyle":{"text":{"show":true,"fontSize":"18","color":"#303133","hPosition":"center","vPosition":"top","isItalic":false,"isBolder":false},"legend":{"show":true,"hPosition":"center","vPosition":"bottom","orient":"horizontal","icon":"circle","textStyle":{"color":"#333333","fontSize":"12"}},"xAxis":{"show":true,"position":"bottom","name":"","nameTextStyle":{"color":"#333333","fontSize":12},"axisLabel":{"show":true,"color":"#333333","fontSize":"12","rotate":0,"formatter":"{value}"},"splitLine":{"show":false,"lineStyle":{"color":"#cccccc","width":1,"style":"solid"}},"axisValue":{"auto":true,"min":null,"max":null,"split":null,"splitCount":null}},"yAxis":{"show":true,"position":"left","name":"","nameTextStyle":{"color":"#333333","fontSize":12},"axisLabel":{"show":true,"color":"#333333","fontSize":"12","rotate":0,"formatter":"{value}"},"splitLine":{"show":true,"lineStyle":{"color":"#cccccc","width":1,"style":"solid"}},"axisValue":{"auto":true,"min":null,"max":null,"split":null,"splitCount":null}},"yAxisExt":{"show":true,"position":"right","name":"","nameTextStyle":{"color":"#333333","fontSize":12},"axisLabel":{"show":true,"color":"#333333","fontSize":"12","rotate":0,"formatter":"{value}"},"splitLine":{"show":true,"lineStyle":{"color":"#cccccc","width":1,"style":"solid"}},"axisValue":{"auto":true,"min":null,"max":null,"split":null,"splitCount":null}},"background":{"color":"#ffffff","alpha":100,"borderRadius":5},"split":{"name":{"show":true,"color":"#999999","fontSize":"12"},"splitNumber":5,"axisLine":{"show":true,"lineStyle":{"color":"#999999","width":1,"type":"solid"}},"axisTick":{"show":false,"length":5,"lineStyle":{"color":"#999999","width":1,"type":"solid"}},"axisLabel":{"show":false,"rotate":0,"margin":8,"color":"#999999","fontSize":"12","formatter":"{value}"},"splitLine":{"show":true,"lineStyle":{"color":"#999999","width":1,"type":"solid"}},"splitArea":{"show":true}}},"customFilter":[],"drillFields":[],"snapshot":null,"data":{"data":[{"value":1,"dimensionList":[{"id":"0383b34d-ad3a-4fbc-bf65-1b9fef4e98af","value":"2021-01-25"}],"quotaList":[{"id":"count"}],"field":"2021-01-25","name":"2021-01-25","category":"记录数*","popSize":null},{"value":2,"dimensionList":[{"id":"0383b34d-ad3a-4fbc-bf65-1b9fef4e98af","value":"2021-02-25"}],"quotaList":[{"id":"count"}],"field":"2021-02-25","name":"2021-02-25","category":"记录数*","popSize":null},{"value":3,"dimensionList":[{"id":"0383b34d-ad3a-4fbc-bf65-1b9fef4e98af","value":"2021-03-25"}],"quotaList":[{"id":"count"}],"field":"2021-03-25","name":"2021-03-25","category":"记录数*","popSize":null},{"value":1,"dimensionList":[{"id":"0383b34d-ad3a-4fbc-bf65-1b9fef4e98af","value":"2021-04-25"}],"quotaList":[{"id":"count"}],"field":"2021-04-25","name":"2021-04-25","category":"记录数*","popSize":null},{"value":1,"dimensionList":[{"id":"0383b34d-ad3a-4fbc-bf65-1b9fef4e98af","value":"2021-05-25"}],"quotaList":[{"id":"count"}],"field":"2021-05-25","name":"2021-05-25","category":"记录数*","popSize":null},{"value":1,"dimensionList":[{"id":"0383b34d-ad3a-4fbc-bf65-1b9fef4e98af","value":"2021-06-13"}],"quotaList":[{"id":"count"}],"field":"2021-06-13","name":"2021-06-13","category":"记录数*","popSize":null},{"value":1,"dimensionList":[{"id":"0383b34d-ad3a-4fbc-bf65-1b9fef4e98af","value":"2021-07-02"}],"quotaList":[{"id":"count"}],"field":"2021-07-02","name":"2021-07-02","category":"记录数*","popSize":null}],"fields":[{"id":"0383b34d-ad3a-4fbc-bf65-1b9fef4e98af","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"date_format([5c93eb1d-db72-4da0-a8e5-f3a4e1d6164a], '%Y-%m-%d')","dataeaseName":"C_16f13509ad7f2b66ac844c8e5a9a61bf","name":"时间","type":"0","checked":true,"columnIndex":10,"lastSyncTime":1640749231730,"deType":0,"summary":null,"sort":"none","deExtractType":0,"dateStyle":"y_M_d","datePattern":"date_sub","extField":2,"chartType":null,"compareCalc":null,"logic":null,"filterType":null,"filter":[]},{"id":"count","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"*","dataeaseName":"*","name":"记录数*","type":"INT","checked":true,"columnIndex":999,"lastSyncTime":null,"deType":2,"summary":"count","sort":"none","deExtractType":null,"dateStyle":null,"datePattern":null,"extField":1,"chartType":"bar","compareCalc":{"type":"none","resultData":"percent","field":"","custom":{"field":"","calcType":"0","timeType":"0","currentTime":"","compareTime":"","currentTimeRange":[],"compareTimeRange":[]}},"logic":null,"filterType":null,"filter":[]}],"sourceFields":[{"id":"0383b34d-ad3a-4fbc-bf65-1b9fef4e98af","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"date_format([5c93eb1d-db72-4da0-a8e5-f3a4e1d6164a], '%Y-%m-%d')","name":"时间","dataeaseName":"C_16f13509ad7f2b66ac844c8e5a9a61bf","groupType":"d","type":"0","size":0,"deType":0,"deTypeFormat":null,"deExtractType":0,"extField":2,"checked":true,"columnIndex":10,"lastSyncTime":1640749231730},{"id":"533ead17-ff11-4053-9ccf-944d122fdc1d","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"enabled","name":"enabled","dataeaseName":"C_a10311459433adf322f2590a4987c423","groupType":"q","type":"BIT","size":1,"deType":2,"deTypeFormat":null,"deExtractType":4,"extField":0,"checked":true,"columnIndex":5,"lastSyncTime":1636453232320},{"id":"57950db3-52f8-4dad-be56-93967b2de7ff","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"update_by","name":"update_by","dataeaseName":"C_cdacfdfd95333420412e9724c6743e72","groupType":"d","type":"VARCHAR","size":255,"deType":0,"deTypeFormat":null,"deExtractType":0,"extField":0,"checked":true,"columnIndex":7,"lastSyncTime":1636453232320},{"id":"58839bc9-944c-4202-bc09-4405aab2a721","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"pid","name":"pid","dataeaseName":"C_0db3209e1adc6d67be435a81baf9a66e","groupType":"q","type":"BIGINT","size":19,"deType":2,"deTypeFormat":null,"deExtractType":2,"extField":0,"checked":true,"columnIndex":1,"lastSyncTime":1636453232320},{"id":"5c93eb1d-db72-4da0-a8e5-f3a4e1d6164a","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"create_time","name":"create_time","dataeaseName":"C_b16a626598674ad426e4b885017906d7","groupType":"d","type":"DATETIME","size":19,"deType":1,"deTypeFormat":null,"deExtractType":1,"extField":0,"checked":true,"columnIndex":8,"lastSyncTime":1636453232320},{"id":"62c61cc9-4ad7-4c70-beac-9df88998739a","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"dept_sort","name":"dept_sort","dataeaseName":"C_12a3118c11d791e56e34c5bcc683ffbe","groupType":"q","type":"INT","size":10,"deType":2,"deTypeFormat":null,"deExtractType":2,"extField":0,"checked":true,"columnIndex":4,"lastSyncTime":1636453232320},{"id":"8c3690c2-5e46-4dba-8bed-bb7eb0eb8207","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"create_by","name":"create_by","dataeaseName":"C_2293ea954bc29b88e7d4b512250b0a44","groupType":"d","type":"VARCHAR","size":255,"deType":0,"deTypeFormat":null,"deExtractType":0,"extField":0,"checked":true,"columnIndex":6,"lastSyncTime":1636453232320},{"id":"9ecc1be3-7226-4d5a-8503-df048407bb27","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"update_time","name":"update_time","dataeaseName":"C_e0df5a999da22bc6fa9e26b115eb4ae4","groupType":"d","type":"DATETIME","size":19,"deType":1,"deTypeFormat":null,"deExtractType":1,"extField":0,"checked":true,"columnIndex":9,"lastSyncTime":1636453232320},{"id":"a6011036-ff4a-4876-b178-1883dfd33fff","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"dept_id","name":"dept_id","dataeaseName":"C_b5a9fd30cd71bb5a622620c302ff6df5","groupType":"q","type":"BIGINT","size":19,"deType":2,"deTypeFormat":null,"deExtractType":2,"extField":0,"checked":true,"columnIndex":0,"lastSyncTime":1636453232320},{"id":"bd0aac35-3364-4060-a4a5-60e0294f9f90","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"sub_count","name":"sub_count","dataeaseName":"C_4d10999e902fc645d862b228edb61418","groupType":"q","type":"INT","size":10,"deType":2,"deTypeFormat":null,"deExtractType":2,"extField":0,"checked":true,"columnIndex":2,"lastSyncTime":1636453232320},{"id":"eb1491ee-41ff-43c2-b9c0-0bd3d8f3178e","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"name","name":"name","dataeaseName":"C_b068931cc450442b63f5b3d276ea4297","groupType":"d","type":"VARCHAR","size":255,"deType":0,"deTypeFormat":null,"deExtractType":0,"extField":0,"checked":true,"columnIndex":3,"lastSyncTime":1636453232320}],"tableRow":[{"C_16f13509ad7f2b66ac844c8e5a9a61bf":"2021-01-25","*":1},{"C_16f13509ad7f2b66ac844c8e5a9a61bf":"2021-02-25","*":2},{"C_16f13509ad7f2b66ac844c8e5a9a61bf":"2021-03-25","*":3},{"C_16f13509ad7f2b66ac844c8e5a9a61bf":"2021-04-25","*":1},{"C_16f13509ad7f2b66ac844c8e5a9a61bf":"2021-05-25","*":1},{"C_16f13509ad7f2b66ac844c8e5a9a61bf":"2021-06-13","*":1},{"C_16f13509ad7f2b66ac844c8e5a9a61bf":"2021-07-02","*":1}]},"privileges":"grant,manage,use","isLeaf":null,"pid":null,"sql":"SELECT\n    *\nFROM\n    (SELECT\n        date_format(t_a_0.`create_time`, '%Y-%m-%d') AS f_ax_0\n        ,\n        COUNT(*) AS f_ay_0\n    FROM\n        `sys_dept`   t_a_0\n    GROUP BY\n        date_format(t_a_0.`create_time`, '%Y-%m-%d')\n    )   t_a_1\n LIMIT 0,1000","drill":false,"drillFilters":[],"xaxis":[{"id":"0383b34d-ad3a-4fbc-bf65-1b9fef4e98af","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"date_format([5c93eb1d-db72-4da0-a8e5-f3a4e1d6164a], '%Y-%m-%d')","name":"时间","dataeaseName":"C_16f13509ad7f2b66ac844c8e5a9a61bf","groupType":"d","type":"0","size":0,"deType":0,"deTypeFormat":null,"deExtractType":0,"extField":2,"checked":true,"columnIndex":10,"lastSyncTime":1640749231730,"dateStyle":"y_M_d","datePattern":"date_sub","sort":"none","filter":[]}],"xaxisExt":[],"yaxis":[{"id":"count","tableId":"312b4840-33db-4490-93e0-2b4e256cd2c0","originName":"*","name":"记录数*","dataeaseName":"*","groupType":"q","type":"INT","size":null,"deType":2,"deTypeFormat":null,"deExtractType":null,"extField":1,"checked":true,"columnIndex":999,"lastSyncTime":null,"compareCalc":{"type":"none","resultData":"percent","field":"","custom":{"field":"","calcType":"0","timeType":"0","currentTime":"","compareTime":"","currentTimeRange":[],"compareTimeRange":[]}},"chartType":"bar","summary":"count","sort":"none","filter":[]}],"yaxisExt":[]},"param":{"id":"1513e5f7-2fd4-41b7-9059-93065d9aadb7","pid":"03279259-6ac5-443c-9114-0dee98247176","nodeType":"leaf","modelType":"chart","modelInnerType":"map","authType":"source","createBy":"admin","level":0,"mode":0,"dataSourceId":"0","name":"本地测试","label":"本地测试","privileges":"grant,manage,use","children":null,"allLeafs":0}}
        }
    }
}
</script>

<style lang="scss" scoped>

</style>